﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SeccondExampleExam
{
    public partial class About : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void SelectedIndexChanged(Object sender, EventArgs e)
        {
            GridViewRow row = ToursGrid.SelectedRow;
            string id = row.Cells[0].Text;
            MessageLabel.Text = "You selected " + ((DataControlFieldCell)row.Cells[1]).Text+ ". Database id is: "+id+".";
            //Response.Redirect("~/TourInfo.aspx/"+id);
        }
    }
}
